package common.util.mp3
{
	import flash.media.SoundChannel;
	
	import mx.core.SoundAsset;

	public class SoundPlayUtil
	{
		private static var instance:SoundPlayUtil;
		
		function SoundPlayUtil(a:A)
		{
			
		}
		
		public static function getInstance():SoundPlayUtil{
			if(!instance){
				instance = new SoundPlayUtil(new A());
			}
			return instance;
		}
		
		public var channel:SoundChannel;            
		
		public function playSound(asset:SoundAsset):void 
		{
			stopSound();
			channel = asset.play(0,0);
		}            
		public function stopSound():void 
		{
			if ( channel != null ) channel.stop();
		}
	}
	
}
class A{}